package com.kinghunt.misp.dal.dao.materialx;

import com.kinghunt.misp.dal.model.materialx.MaterialDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 耗材基本信息表
* Created by Mybatis Generator on 2025/02/27
*/
public interface MaterialDAO {
    int deleteByPrimaryKey(Long materialId);

    int insert(MaterialDO record);

    int insertSelective(MaterialDO record);

    MaterialDO selectByPrimaryKey(Long materialId);

    int updateByPrimaryKeySelective(MaterialDO record);

    int updateByPrimaryKey(MaterialDO record);
    List<MaterialDO> selectMaterialList(@Param("material")MaterialDO record,
                                @Param("offset")int offset,
                                @Param("size")int size);

    int selectMaterialListCount(@Param("material")MaterialDO record);
    List<MaterialDO> selectByMaterialNo(@Param("materialNo")String materialNo);
}